package me.keiwu.admin.service;

import me.keiwu.admin.domain.Gallery;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by kei on 07/12/2017.
 */
public interface GalleryService {

    /**
     * 图库图片列表
     * @param page
     * @param size
     * @return
     */
    Page<Gallery> list(int page, int size);


    /**
     * 上传图片到图库
     * @param uploadFile
     * @param desc
     * @return
     */
    Gallery upload(MultipartFile uploadFile, String desc);


    /**
     * 删除图片
     * @param id
     */
    void delete(long id);

}
